/******************************************************************************
---这里编写了基本功能函数---
	1 蓝牙的初始化配置
	2 按键键值的读取
************************************************************************************************/
#include "IR_Exit.h"

/******************** INT配置 ********************/
void Exti_Init(void)
{
	EXTI_InitTypeDef	Exti_InitStructure;					//结构定义

	Exti_InitStructure.EXTI_Interrupt = ENABLE;				//中断使能,   ENABLE或DISABLE
	Exti_InitStructure.EXTI_Mode      = EXT_MODE_Fall;		//中断模式,   EXT_MODE_RiseFall,EXT_MODE_Fall
	Exti_InitStructure.EXTI_Priority  = Priority_1;			//指定中断优先级(低到高) Priority_0,Priority_1,Priority_2,Priority_3
	Ext_Inilize(EXT_INT1,&Exti_InitStructure);				//初始化
	EA  = 1;
}


